package org.groupg.mockdatabyspring;

import org.groupg.mockdatabyspring.system.config.MockDataConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 默认启动项
 */
@SpringBootApplication
public class MockDataBySpringApplication {

    /**
     * 程序应用启动方法
     *
     * @param args 参数列表
     */
    public static void main(String[] args) {
        SpringApplication.run(MockDataBySpringApplication.class, args);

        System.out.println("下列内容在通过 Jar 包启动时才有用！");
        System.out.println("打包命令为 gradlew bootJar");
        System.out.println("接口文档地址\t\t " + MockDataConfig.getUrl() + "/docs/index.html");
        System.out.println("接口文档地址\t\t " + MockDataConfig.getLocalhostUrl() + "/docs/index.html");
        System.out.println("javadoc文档地址\t\t " + MockDataConfig.getUrl() + "/javadoc/index.html");
        System.out.println("javadoc文档地址\t\t " + MockDataConfig.getLocalhostUrl() + "/javadoc/index.html");
        System.out.println();
        System.out.println("下列内容在启动后就有用！");
        System.out.println("swagger接口文档地址\t\t " + MockDataConfig.getUrl() + "/api-ui.html");
        System.out.println("swagger接口文档地址\t\t " + MockDataConfig.getLocalhostUrl() + "/api-ui.html");

    }

}
